import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

// npm install ng-zorro-antd --save
// 自动引入的
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NgZorroAntdModule, NZ_I18N, zh_CN, en_US } from 'ng-zorro-antd';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
/** 配置 angular i18n **/
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
// 这个是用命令自动创建的登录模块，但是没法用
import { LoginComponent } from './login/login.component';
import { HomeComponent } from './components/home/home.component';
import en from '@angular/common/locales/en';
import { TableComponent } from './components/table/table.component';
import { UploadComponent } from './components/upload/upload.component';
import { Upload2Component } from './components/upload2/upload2.component';
import { ManualuploadComponent } from './components/manualupload/manualupload.component';
import { TreeComponent } from './components/tree/tree.component';
import { Tree2Component } from './components/tree2/tree2.component';
import { DeptTreeAreaComponent } from './components/dept-tree-area/dept-tree-area.component';
import { Tree1Component } from './componentstree/tree1/tree1.component';
import { Tree3Component } from './componentstree/tree3/tree3.component';
import { Tree4Component } from './componentstree/tree4/tree4.component';
import { Tree5Component } from './componentstree/tree5/tree5.component';
import { Tree6Component } from './componentstree/tree6/tree6.component';
import { Tree7Component } from './componentstree/tree7/tree7.component';
import { Tree8Component } from './componentstree/tree8/tree8.component';
import { Tree9Component } from './componentstree/tree9/tree9.component';
import { Tree10Component } from './componentstree/tree10/tree10.component';

registerLocaleData(zh);


@NgModule({
  declarations: [
    AppComponent,
    LoginComponent,
    HomeComponent,
    TableComponent,
    UploadComponent,
    Upload2Component,
    ManualuploadComponent,
    TreeComponent,
    Tree2Component,
    DeptTreeAreaComponent,
    Tree1Component,
    Tree3Component,
    Tree4Component,
    Tree5Component,
    Tree6Component,
    Tree7Component,
    Tree8Component,
    Tree9Component,
    Tree10Component,
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    NgZorroAntdModule,/** 导入 ng-zorro-antd 模块 **/
    FormsModule,
    HttpClientModule,
    BrowserAnimationsModule
  ],
  providers: [
    { provide: NZ_I18N, useValue: zh_CN }/** 配置 ng-zorro-antd 国际化（文案 及 日期） **/
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
